#
# @author Wójcik Karol <wojcikk@student.agh.edu.pl>
# @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
#

class CreateMarks < ActiveRecord::Migration
  def self.up
  remove_column :users, :degree 
  add_column :users, :mark_id, :integer
    create_table :marks do |t|
      t.column :name, :string
    end
  end

  def self.down
    remove_column :users, :mark_id
    add_column :users, :degree, :string
    drop_table :marks
  end
end
